@fsergeys when the callbackfunction is triggered wait for 100ms,then check the status of the input-if it is still pulled to low then the button is pressed,else the button is not pressed and you jump out of the callbackfunction. the reason the callbackfunction is triggered multiple times is the bouncing of the mechanical contact of the switch.